package com.ruoyi.system.service;

import java.io.FileNotFoundException;
import java.security.SignatureException;
import java.util.Date;
import java.util.List;

import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.domain.entity.AiRecordingDuan;
import com.ruoyi.common.core.domain.entity.AiRecordingMain;

/**
 * 录音文件上传记录Service接口
 *
 * @author ruoyi
 * @date 2025-03-06
 */
public interface IAiRecordingMainService
{
    /**
     * 查询录音文件上传记录
     *
     * @param id 录音文件上传记录主键
     * @return 录音文件上传记录
     */
    public AiRecordingMain selectAiRecordingMainById(Long id);

    /**
     * 查询录音文件上传记录列表
     *
     * @param aiRecordingMain 录音文件上传记录
     * @return 录音文件上传记录集合
     */
    public List<AiRecordingMain> selectAiRecordingMainList(AiRecordingMain aiRecordingMain);

    /**
     * 新增录音文件上传记录
     *
     * @param aiRecordingMain 录音文件上传记录
     * @return 结果
     */
    public int insertAiRecordingMain(AiRecordingMain aiRecordingMain);

    public int insertAiRecordingMainFile(String path, String avatar, String language, String  segmented, Long costomerId, Date time) throws Exception;


//    public int insertAiRecordingMainFileFast(String path,String avatar,String language, String  segmented) throws Exception;




    public AjaxResult segmentedByDeepSeek(AiRecordingMain aiRecordingMain);



    public AjaxResult updateMainDate(AiRecordingMain aiRecordingMain);

    public AjaxResult updateMainDateCustomerName(AiRecordingDuan aiRecordingDuan) throws InterruptedException;



    public AjaxResult deleteRemoveDuan(AiRecordingDuan aiRecordingDuan);


    public AjaxResult deleteRemoveMain(AiRecordingDuan aiRecordingDuan);
    /**
     * 修改录音文件上传记录
     *
     * @param aiRecordingMain 录音文件上传记录
     * @return 结果
     */
    public int updateAiRecordingMain(AiRecordingMain aiRecordingMain);

    public AjaxResult deepseekParse(AiRecordingDuan aiRecordingDuan) throws Exception;


    public List<AiRecordingDuan> selectCustomerTime();


    public void getXunFeiResult(AiRecordingMain aiRecordingMain) throws Exception;



    public List<AiRecordingDuan> selectGroupTime(AiRecordingDuan aiRecordingDuan);

    public List<AiRecordingDuan> selectGroupPerson();

    /**
     * 批量删除录音文件上传记录
     *
     * @param ids 需要删除的录音文件上传记录主键集合
     * @return 结果
     */
    public int deleteAiRecordingMainByIds(Long[] ids);

    /**
     * 删除录音文件上传记录信息
     *
     * @param id 录音文件上传记录主键
     * @return 结果
     */
    public int deleteAiRecordingMainById(Long id);
}
